<template>
  <el-form-item :label="i18nt('designer.setting.showPagination')">
    <el-switch v-model="optionModel.showPagination"></el-switch>
  </el-form-item>
  <el-form-item :label="i18nt('designer.setting.pageSize')" v-if="!!optionModel.showPagination">
    <el-select v-model="optionModel.pagination.pageSize">
      <el-option label="5" :value="10"></el-option>
      <el-option label="10" :value="10"></el-option>
      <el-option label="15" :value="15"></el-option>
      <el-option label="20" :value="20"></el-option>
      <el-option label="30" :value="30"></el-option>
      <el-option label="50" :value="50"></el-option>
    </el-select>
  </el-form-item>
</template>

<script>
  import i18n from "@/utils/i18n"

  export default {
    name: "grid-sub-form-showPagination-editor",
    mixins: [i18n],
    props: {
      designer: Object,
      selectedWidget: Object,
      optionModel: Object,
    },
  }
</script>

<style scoped>

</style>
